
/*
* 1. 数据模拟
* */
var users = Mock.mock({
    "list|10":[{
        "username":"@first", // @ 占位符
        "role|1":["管理员","财务管理","车辆管理","不动产管理"],
        "nickname":"@string(5)",
        "createtime":"@datetime"
    }]
})

var roles = [
    {
        id:1,
        name:'管理员'
    },
    {
        id:2,
        name:'财务管理'
    },{
        id:1,
        name:'车辆管理'
    },{
        id:1,
        name:'不动产管理'
    }
]


var depts=

/*
* * 2. ajax拦截
* */
Mock.mock("http://test.org/users","get",users.list);
Mock.mock("http://test.org/roles","get",roles);




